package cn.appsys.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.appsys.biz.CategoryBiz;
import cn.appsys.dao.CategoryDao;
import cn.appsys.entity.AppCategory;
@Service("categoryBiz")
public class CategoryBizImpl implements CategoryBiz {
	@Autowired
	CategoryDao categoryDao;
	
	
	public List<AppCategory> getAllCategory() {
		
		return categoryDao.getAllCategory();
	}


	public List<AppCategory> getAppCategoryListByParentId(Integer parentId)
			throws Exception {
		
		return categoryDao.getAppCategoryListByParentId(parentId);
	}


}
